import { INCREMENT, DECREMENT, MULTIPLY } from "./constants"
export function incA(num) {
  return { type: INCREMENT, num }
}
export function decA(num) {
  return { type: DECREMENT, num }
}

export function asyncMul(num){
  return (dispatch)=>{
    setTimeout(() => {
      dispatch({ type: MULTIPLY, num })
    }, 2000);
  }
}